/*
 * @Date: 2020-09-25 13:01:29
 * @Author: David
 * @LastEditors: OBKoro1
 * @LastEditTime: 2020-10-06 14:57:55
 * @FilePath: /huanyong-task-01-01/webpack.config.js
 * @Description: someting...
 */
const HtmlWebpckPlugin = require('html-webpack-plugin');

module.exports = {
    mode: 'none',
    stats: 'none',
    devtool: 'source-map',
    plugins: [
        new HtmlWebpckPlugin(),
    ],
    module: {
        //webpack使用loader的方式处理各种各样的资源
        rules: [{
            test: /\.js$/, //处理以.js结尾的文件
            use : {
                loader: 'babel-loader', //用babel-loader处理
                options: {
                    presets: ['@babel/preset-env'],
                    plugins: ['@babel/plugin-proposal-class-properties']
                }
            }
        }]
    }

}